import PyQt5.sip
from index import *
import sys, os
from apps import runProxy
from multiprocessing import Pipe


if hasattr(sys, 'frozen'):
    os.environ['PATH'] = sys._MEIPASS + ";" + os.environ['PATH']


class MainWind(Ui_MainWindow, QtWidgets.QMainWindow):
    def __init__(self):
        super(MainWind, self).__init__()
        self.setupUi(self)


if __name__ == '__main__':
    pipe = Pipe()
    runProxy(pipe)
    app = QtWidgets.QApplication(sys.argv)
    mainwind = MainWind()
    mainwind.pipe = pipe
    mainwind.show()
    sys.exit(app.exec_())
